<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Subscribers'); ?></div>
    <h2>Subscribers</h2>
    <p>People that are subscribing to your site, nothing more,</p>
       
    <form method="get" id="form" enctype="multipart/form-data">
    <fieldset>
		<legend>Filter</legend>
        <div class="filter-row">
        	<label>Email: </label>
            <input type="text" name="keyword" value="<?php echo $args['keyword']; ?>">
        </div>
        <div class="filter-row">
            <label>Created from</label>
            <input tabindex="5" type="text" id="dfrom" name="dfrom" class="datepicker" value="<?php echo $args['created_from']; ?>" />
            <span style="float:left; width:22px; text-align:center; margin-top:6px;">To</span> 
            <input tabindex="6" type="text" id="dto" name="dto" class="datepicker" value="<?php echo $args['created_to']; ?>" />
        </div>        
        <div style="clear:both; text-align:center">
            <input type="submit" value="Search" /> 
            <input type="reset" name="Clear">
        </div>
    </fieldset>			
    </form>
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Email');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Name');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Description');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Created');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Status');?></th>
                <th scope="col" style="width: 65px;"><?php  echo Yii::t('AdmincpModule.admincp', 'Options');?></th>
            </tr>
        </thead>
            
        <tbody>
        
        <?php if(!empty($arrSubscribers)):?>
			<?php foreach($arrSubscribers as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td><?php echo $R['subscriber_email']; ?></td>
                <td><?php echo $R['subscriber_name']; ?></td>
                <td><?php echo $R['subscriber_description']; ?></td>
                <td><?php echo $R['subscriber_created_date']; ?></td>
                <td><?php echo $R['subscriber_status']; ?></td>
                <td>
                    <a href="<?php echo LINK_ADMINCP_SUBSCRIBERS.'/form/?id='.$R['subscriber_id']; ?>" class="table-icon edit" title="Edit"></a>
                    <a href="<?php echo LINK_ADMINCP_SUBSCRIBERS.'/delete/?id='.$R['subscriber_id']; ?>" class="table-icon delete" title="Delete"></a>
                </td>
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php /*$this->widget('CLinkPager', array(
			'currentPage'=>$objPages->getCurrentPage()-1,
			'pages' => $objPages,
		))*/ ?>
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_SUBSCRIBERS.'/form'; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Subscriber'); ?></a> 
    </div>
</div>